package JavaHome;

class A {
	static char c = 'a';
	
}

class D extends A
{
	
	public static void main(String[] args) {
		System.out.println("value ->"+ A.c);
	}
}

public class B extends A
{
	public static char d = 'x';
	protected static void m()
	{
		System.out.println("Class B -> M() METHOD EXECUTES");
	}
	public static void main(String[] args) {
		A a1 = new A();
		B b1 = new B();
		System.out.println("value ->"+ a1.c);
		System.out.println("value ->"+ b1.c);
		
		
	}
}

